package com.example.dessertstoressm.domain;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("category")
public class Category implements Serializable {
    @TableField(exist = false)
    private static final long serialVersionUID = 3992469837058393712L;

    @TableField(value="catid")
    private String categoryId;
    private String name;
    @TableField(value="descn")
    private String description;

    public void setCategoryId(String categoryId) {
        this.categoryId = categoryId.trim();
    }

}
